﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Caviar.SharedKernel.Entities.IM
{
    public class GroupMessage : SysUseEntity
    {
        /// <summary>
        /// 发送人用户群
        /// </summary>
        public UserGroup UserGroup { get; set; }

        /// <summary>
        /// 发送人用户群Id
        /// </summary>
        public string UserGroupId { get; set; }

        /// <summary>
        /// 发送时间
        /// </summary>
        public DateTime SendTime { get; set; }

        /// <summary>
        /// 消息类型
        /// </summary>
        public MessageType Type { get; set; }

        /// <summary>
        /// 内容体
        /// </summary>
        public string ContentBody { get; set; }

        /// <summary>
        /// 是最新消息
        /// </summary>
        public bool IsLatest { get; set; }
    }
}
